<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      display: flex;
      width: 300px;
      height: 100px;
      background-color: orange;
    }
    .box button {
      flex: 1;
      height: 50px;
    }
  </style>
</head>
<body>
  <div class="box">
    <button>删除</button>
    <button>新增</button>
    <button>搜索</button>
  </div>

  <input type="text">
  <script>
    var boxEl = document.querySelector(".box")

    boxEl.onmouseover = function(event) {
      
      console.log(event.target.textContent);
    }
    var inputEl = document.querySelector("input")
    document.onkeyup = function(event) {
      if (event.code == "KeyS") {
        inputEl.focus()
      }
      if (event.code == "KeyD") {
        inputEl.blur()
      }
    }
  </script>
</body>
</html>